<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

use think\facade\Route;
Route::rule('about', 'home/about');

Route::group("api_v1",function (){
    Route::rule('/', 'index/index');
    Route::rule('home', 'home/index');
    Route::rule('classify', 'home/classify');
    Route::rule('classify_list', 'home/classify_list');
    Route::rule('novel_detail', 'novel/detail');
    Route::rule('commend_list', 'novel/commend_list');
    Route::rule('search', 'novel/search');
    Route::rule('user_login', 'user/user_login');
    Route::rule('user_info', 'user/user_info');
    Route::rule('book_shelf', 'user/book_shelf');
    Route::rule('add_book', 'user/add_book');
    Route::rule('delete_book', 'user/delete_book');

    //章节详情
    Route::rule('chapter_content/:primary_id/:chapter_id', 'chapter/content');
});

return [];